extends ../layout

block content
  table(cellspacing="1",cellpadding="0",class="table")
    tr
      th(width="13%") 标题
      th(width="10%") 发表时间
      th(width="10%") 描述
      th(width="10%") 关键词
      th(width="10%") 分类
      th(width="8%") 原创
      th(width="7%") 可见
      th(width="10%") 允许评论
      th(width="8%") 置顶
      th(width="7%") 修改
      th(width="7%") 删除
    each post in posts
      tr
        td
          a(href="/u/#{post.name}/#{post.time.day}/#{post.title}",target="_blank") #{post.title}
        td= post.time.minute
        td= S(post.abstracts).length>10?S(post.abstracts).left(10).s+'...':post.abstracts
        td= post.keywords
        td= post.category
        td= post.original
        td= post.visible
        td= post.allowcomment
        td= post.top
        td 
          a(href="/admin/edit/#{post.name}/#{post.time.day}/#{post.title}") 修改
        td 
          a(href="/admin/delete/#{post.name}/#{post.time.day}/#{post.title}") 删除
